package com.ylbh.modules.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.goods.dto.*;
import com.ylbh.common.pojo.goods.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author mgh
 */
@Mapper
@Repository
public interface SupplierGoodsMapper extends BaseMapper<GoodsDTO> {

    /**
     * 商品信息列表
     * @param goodsListDTO
     * @param page
     * @return
     */
    List<GoodsListVO> selectGoodsList(@Param(value = "goodsListDTO") GoodsListDTO goodsListDTO, Page page);

    /**
     * 运营商厂家列表
     * @return
     */
    List<ManufactorVO> selectManufactorList();

    /**
     * 修改供应商商品的上下架状态
     * @param id
     * @param type
     * @param i
     */
    void updateGoodsStatusById(String id, Integer type, int status);
}
